<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
</head>
<body>
商品:<input type="text" name="title" id="title"><br>
价格:<input type="text" name="price" id="price"><br>
<button id="submit">添加</button>
</body>
<script src="./js/main.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
<script>
    $('#submit').on("click", function(){
        add_Goods();
    });
</script>
</html>